package cn.com.yang.consts;

/**
 *
 */
public enum AcctEnum {

    ACCT_1("1","借记卡"),
    ACCT_2("2","贷记卡");
    private String acctTyp;
    private String acctName;

    AcctEnum(String acctTyp, String acctName) {
        this.acctTyp =acctTyp;
        this.acctName = acctName;
    }

    public String getAcctTyp() {
        return acctTyp;
    }

    public void setAcctTyp(String acctTyp) {
        this.acctTyp = acctTyp;
    }

    public String getAcctName() {
        return acctName;
    }

    public void setAcctName(String acctName) {
        this.acctName = acctName;
    }

    public static void main(String[] args) {
        AcctEnum.ACCT_1.getAcctTyp();
        AcctEnum.ACCT_2.getAcctName();
        Enum.valueOf(AcctEnum.class,"借记卡");
        System.out.println(Enum.valueOf(AcctEnum.class,"借记卡"));
    }
}
